<?php

namespace App\Remote\Bk;

use Illuminate\Http\Request;

class BkRemote extends BkBaseRemote
{

    public static function initData(int $cityId, $dataSource = "ESF")
    {
        return self::customRequest(
            "/proxyApi/i.c-pc-webapi.ke.com/map/initdata",
            Request::METHOD_GET,
            [
                "cityId"     => $cityId,
                "dataSource" => $dataSource
            ]
        );
    }

    public static function bubbleList(
        int $cityId,
        string $maxLongitude,
        string $maxLatitude,
        string $minLongitude,
        string $minLatitude,
        string $groupType = "community",
        $dataSource = "ESF"
    ) {
        return self::customRequest(
            "/proxyApi/i.c-pc-webapi.ke.com/map/bubblelist",
            Request::METHOD_GET,
            [
                "cityId"       => $cityId,
                "dataSource"   => $dataSource,
                "groupType"    => $groupType,
                "maxLatitude"  => $maxLatitude,
                "minLatitude"  => $minLatitude,
                "maxLongitude" => $maxLongitude,
                "minLongitude" => $minLongitude
            ]
        );
    }

}
